package com.zsrt.java.day20161223.cg.homework.switchtest;

import java.util.Scanner;

import org.junit.Test;

public class SwitchTest02 {
	@Test
	public void switchTest(){
		Scanner sc = new Scanner(System.in);
		System.out.println("����������ĳɼ�");
		String score = sc.next();
//		һ�����б�ʾ��������ַ�ת��Ϊ�ַ� �����ַ�ʱ���ã�case����Խ�'a'֮��
//		String s = sc.next();
//		char score = s.charAt(0);
		sc.close();
		
		switch(score){
		case "A" : System.out.println("����"); break; 
		case "B" : System.out.println("����"); break;
		case "C" : System.out.println("һ��"); break;
		default  : System.out.println("������"); 
		}
	}
}
